---@module nvmConfig
module(...)

-- mqtt连接异常重启等待间隔  1400约等于540分钟。1分钟等待就是2.6个单位
MQTT_ERR_RST_TIME = 26 -- 默认等待10分钟

-- 串口配置参数
SLAVE_ID = "FF"
BAUD = 9999
DATA_BITS = 8
STOP_BITS = 1
PARITY = 0
REBOOT_TIME = 0
DAILY_TIME = 0

-- 设备类型
DEV_TYPE = "FGSG" -- "南牧"、"宝恒BH","托利多IND245 TLD","FGSG 法国世感",4800字符，9600字符  XK3168 -- 柯力XK3168

NET_MODE = "4G" -- "4G"、"STATIC"、 "DHCP"
-- 有线网卡配置
w5500Used = false
IP = { 192, 168, 31, 117 }
GATEWAY = { 192, 168, 31, 1 }
MASK = { 255, 255, 255, 0 }
DNS = "114.114.114.114"
DHCP_VALID = false
DHCP_LEASE = 0
IS_LEASED = false

-- 阿里云配置信息
ALI_DEVICE_SECRET = ""
ALI_DEVICE_IOTID = ""

-- 用来保存每天的统计数据,注意这个会改变
---@class DAY_REPORT
DAY_REPORT = {
    ["dayfeedin"] = 0, -- 当日补料量 kg
    ["dayfeedinnum"] = 0, -- 当日补料次数
    ["feedintime_min"] = 0, -- 当日补料总时间 单位分
    ["dayfeedout"] = 0, -- 当日喂料总重量 单位kg
    ["dayfeedoutnum"] = 0, -- 当日喂料总次数
    ["feedouttime_min"] = 0, -- 当日喂料总时长 分
    ["dayremain"] = 0, -- 当日剩余料量 kg
    ["resultday"] = "2000-01-01"
}

RANDOM_NUM = 0
